﻿using HModel;
using System.Windows.Forms;

namespace HMaker.Controls
{
    public class ResListView : CommonListBox<ResEntity>
    {
        /// <summary>
        /// 图片键
        /// </summary>
        public string ImgKey { get; set; }

        protected override void InitList()
        {

        }

        protected override ListViewItem RenderItem(ListViewItem lvi, ResEntity obj)
        {
            lvi.ImageKey = ImgKey;
            lvi.Text = obj.Name;
            return lvi;
        }
    }
}
